<template>
    <table class="table table-bordered table-stripped">
      <thead>
        <tr>
          <slot name="head"></slot>
        </tr>
      </thead>
      <tbody>
        <tr v-for="obj in arr" :key="obj.id">
          <slot name="body" :row="obj"></slot>
        </tr>
      </tbody>
    </table>
  </template>
  
  <script>
  export default {
    name: 'MyTable',
    props: ['arr']
  }
  </script>
  
  
  <style scoped lang="less">
  .my-goods-list {
    .badge {
      margin-right: 5px;
    }
  }
  </style>